package factory.bookexam;

public abstract class PizzaStore {

	public Pizza orderPizza(String type){
		Pizza pizza;
		pizza = createPizza(type); /*팩토리메소드패턴*/
		
		//pizza.perpare();
		pizza.bake();
		pizza.cut();
		pizza.box();
		
		return pizza;
	}
	protected abstract Pizza createPizza(String type);
}
